
<form id="splitPage" action="${cxt!}/platform/operator" method="POST" class="form-horizontal">

	<!-- BEGIN PAGE CONTAINER-->
	<div class="container-fluid">

		<!-- BEGIN PAGE HEADER-->
		<div class="row-fluid">
			<div class="span12">
				<!-- BEGIN PAGE TITLE & BREADCRUMB-->
				<ul class="breadcrumb">
					<li>
						<a href="javascript:void(0)" onclick="common_ajax.ajaxMainPanel('/platform/index/content');">${i18nMap["admin.common.mainPage"]}</a>
						<span class="divider">/</span>
					</li>
					<li><a href="#">用户权限</a> <span class="divider">/</span></li>
					<li class="active">${i18nMap["admin.operator.common.name"]}</li>
				</ul>
				<!-- END PAGE TITLE & BREADCRUMB-->
			</div>
		</div>
		<!-- END PAGE HEADER-->

		<div class="row-fluid">
			<div class="span12">
				<div class="widget yellow">
					<div class="widget-title">
						<h4>
							<i class="icon-reorder"></i> ${i18nMap["admin.operator.list.select"]}
						</h4>
						<span class="tools"> 
							<a class="icon-chevron-down" href="javascript:;"></a>
						</span>
					</div>
					<div class="widget-body form switch-form">
						${i18nMap["admin.operator.property.name"]}
						<input class="medium" type="text" name="_query.names" value='${escapeHtml(splitPage.queryParam["names"])}' maxlength="20">
					
						${i18nMap["admin.operator.property.url"]}
						<input class="medium" type="text" name="_query.url" value='${escapeHtml(splitPage.queryParam["url"])}' maxlength="100" style="width: 250px">

						<button type="button" class="btn btn-danger" onclick='common_ajax.ajaxFormMainPanel("splitPage");'>${i18nMap["admin.common.select"]}</button>
						<button type="reset" class="btn btn-inverse">${i18nMap["admin.common.reset"]}</button>
					</div>
				</div>
			</div>
		</div>

		<!-- BEGIN ADVANCED TABLE widget-->
		<div class="row-fluid">
			<div class="span12">

				<!-- BEGIN EXAMPLE TABLE widget-->
				<div class="widget red">

					<%
						var view = authUrl("/platform/operator/view");
						var edit = authUrl("/platform/operator/edit");
						var delete = authUrl("/platform/operator/delete");
					%>

					<div class="widget-title">
						<h4>
							<i class="icon-reorder"></i> ${i18nMap["admin.operator.list.table"]}
						</h4>
					</div>

					<div class="widget-body">
						<span class="tools"> 
							<% if(authUrl("/platform/operator/add.html")){ %>
							<button type="button" class="btn btn-small btn-warning" onclick="common_ajax.ajaxMainPanel('/platform/operator/toUrl?toUrl=/platform/operator/add.html');">
								<i class="icon-plus icon-white"></i>
								${i18nMap["admin.operator.add"]}
							</button> 
							<% } %> 
							
							<% if(delete == true){ %>
							<button type="button" class="btn btn-small btn-danger" data-table="dataTable" data-url="/platform/operator/delete?csrfToken=${csrfToken!}" onclick="common_modals.deleteList(this)">
								<i class="icon-remove icon-white"></i>
								${i18nMap["admin.common.delete"]}
							</button> 
							<% } %>
						</span>

                       	<div class="space15"></div>
                       
						<table class="table table-striped table-bordered" id="dataTable">
							<thead>
								<tr>
									<th width="8">
										<input type="checkbox" class="group-checkable" name="checkAll" onchange="common_common.checkFunc('dataTable', this.checked);" class="flat-grey selectall">
									</th>
									<th width="7%" class="hidden-phone" onclick="common_splitPage.orderbyFun('main-content', 'splitPage', 's.names')">
										${i18nMap["admin.operator.property.sname"]}	${orderBy("s.names")}
									</th>
									<th width="7%" class="hidden-phone" onclick="common_splitPage.orderbyFun('main-content', 'splitPage', 'm.names')">
										${i18nMap["admin.operator.property.mname"]}	${orderBy("m.names")}
									</th>
									<th width="7%" class="hidden-phone" onclick="common_splitPage.orderbyFun('main-content', 'splitPage', 'names')">
										${i18nMap["admin.operator.property.name"]}	${orderBy("names")}
									</th>
									<th width="19%" class="hidden-phone" onclick="common_splitPage.orderbyFun('main-content', 'splitPage', 'url')">
										${i18nMap["admin.operator.property.url"]}	${orderBy("url")}
			      					</th>
									<th width="5%" class="hidden-phone" onclick="common_splitPage.orderbyFun('main-content', 'splitPage', 'rowFilter')">
										${i18nMap["admin.operator.property.rowFilter"]}	${orderBy("rowFilter")}
									</th>
									<th width="5%" class="hidden-phone" onclick="common_splitPage.orderbyFun('main-content', 'splitPage', 'splitPage')">
										${i18nMap["admin.operator.property.splitPage"]}	${orderBy("splitPage")}
									</th>
									<th width="7%" class="hidden-phone" onclick="common_splitPage.orderbyFun('main-content', 'splitPage', 'formToken')">
										${i18nMap["admin.operator.property.formToken"]}	${orderBy("formToken")}
									</th>
									<th width="5%" class="hidden-phone" onclick="common_splitPage.orderbyFun('main-content', 'splitPage', 'privilegess')">
										${i18nMap["admin.operator.property.privilegess"]}	${orderBy("privilegess")}
									</th>
									<th width="5%" class="hidden-phone" onclick="common_splitPage.orderbyFun('main-content', 'splitPage', 'csrf')">
										${i18nMap["admin.operator.property.csrf"]}	${orderBy("csrf")}
									</th>
									<th width="7%" class="hidden-phone" onclick="common_splitPage.orderbyFun('main-content', 'splitPage', 'referer')">
										${i18nMap["admin.operator.property.referer"]}	${orderBy("referer")}
									</th>
									<th width="7%" class="hidden-phone" onclick="common_splitPage.orderbyFun('main-content', 'splitPage', 'method')">
										${i18nMap["admin.operator.property.method"]}	${orderBy("method")}
									</th>
									<th width="5%" class="hidden-phone" onclick="common_splitPage.orderbyFun('main-content', 'splitPage', 'syslog')">
										${i18nMap["admin.operator.property.syslog"]}	${orderBy("syslog")}
									</th>
									<th width="15%" class="hidden-phone">${i18nMap["admin.common.operation"]}</th>
								</tr>
							</thead>
							<tbody>
								<% for(operator in splitPage.list){ %>
								<tr class="odd gradeX">
									<td>
										<input type="checkbox" class="checkboxes" name="checkIds" value="${operator.ids!}" class="flat-grey foocheck">
									</td>
									<td>${escapeHtml(operator.systemsnames!)}</td>
									<td>${escapeHtml(operator.modulenames!)}</td>
									<td>${escapeHtml(operator["names"]!)}</td>
									<td>${escapeHtml(operator["url"]!)}</td>
									<td class="hidden-phone">
										<span class="label label-success">
											<% if(operator["rowFilter"] == "0"){ %>
													${i18nMap["admin.common.no"]}
											<% }else{ %>
													${i18nMap["admin.common.yes"]}
											<% } %>
										</span>
									</td>
									<td class="hidden-phone">
										<span class="label label-success">
											<% if(operator["splitPage"] == "0"){ %>
													${i18nMap["admin.common.no"]}
											<% }else{ %>
													${i18nMap["admin.common.yes"]}
											<% } %>
										</span>
									</td>
									<td class="hidden-phone">
										<span class="label label-success">
											<% if(operator["formToken"] == "0"){ %>
													${i18nMap["admin.common.no"]}
											<% }else{ %>
													${i18nMap["admin.common.yes"]}
											<% } %>
										</span>
									</td>
									<td class="hidden-phone">
										<% if(operator["privilegess"] == "0"){ %>
												${i18nMap["admin.common.no"]}
										<% }else{ %>
												${i18nMap["admin.common.yes"]}
										<% } %>
									</td>
									<td class="hidden-phone">
										<% if(operator["csrf"] == "0"){ %>
												${i18nMap["admin.common.no"]}
										<% }else{ %>
												${i18nMap["admin.common.yes"]}
										<% } %>
									</td>
									<td class="hidden-phone">
										<% if(operator["referer"] == "0"){ %>
												${i18nMap["admin.common.no"]}
										<% }else{ %>
												${i18nMap["admin.common.yes"]}
										<% } %>
									</td>
									<td class="hidden-phone">
										<% if(operator["method"] == "0"){ %>
												${i18nMap["admin.operator.property.method.0"]}
												
										<% }else if(operator["method"] == "1"){ %>
												${i18nMap["admin.operator.property.method.1"]}
												
										<% }else if(operator["method"] == "2"){ %>
												${i18nMap["admin.operator.property.method.2"]}
												
										<% }else{ %>
												
										<% } %>
									</td>
									<td class="hidden-phone">
										<% if(operator["syslog"] == "0"){ %>
												${i18nMap["admin.common.no"]}
										<% }else{ %>
												${i18nMap["admin.common.yes"]}
										<% } %>
									</td>
									<td class="hidden-phone">
										<% if(view == true){ %>
											<button type="button" class="btn btn-small" onclick="common_ajax.ajaxMainPanel('/platform/operator/view/${escapeHtml(operator.ids!)}');">
												<i class="icon-eye-open"></i> 
												${i18nMap["admin.common.see"]}
											</button> 
										<% } %>
										
										<% if(edit == true){ %>
											<button type="button" class="btn btn-small btn-inverse" onclick="common_ajax.ajaxMainPanel('/platform/operator/edit/${escapeHtml(operator.ids!)}');">
												<i class="icon-refresh icon-white"></i>
												${i18nMap["admin.common.edit"]}
											</button> 
										<% } %>
										
										<% if(delete == true){ %>
											<button type="button" class="btn btn-small btn-danger" onclick="common_modals.deleteOne(this)" data-url="/platform/operator/delete/${operator.ids!}?csrfToken=${csrfToken!}">
												<i class="icon-remove icon-white"></i>
												${i18nMap["admin.common.delete"]}
											</button> 
										<% } %>
									</td>
								</tr>
								<% } %>
							</tbody>
						</table>

						<div id="splitPageDiv" class="pagination">
							<% include("/platform/common/splitPage.html", {"divId" : "main-content", "formId" : "splitPage", "splitPageDiv" : "splitPageDiv"}){} %>
						</div>

					</div>
				</div>
				<!-- END EXAMPLE TABLE widget-->

			</div>
		</div>

		<!-- END ADVANCED TABLE widget-->
	</div>

</form>
				
<script type="text/javascript">
	
</script>
